<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/layout.css" rel="stylesheet" type="text/css" />
<smart>include file ='../head.config.html'</smart>
<script type="text/javascript" src="../js/jscalendar/calendar.js"></script>
<script type="text/javascript" src="../js/jscalendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="../js/jscalendar/calendar-setup.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="../js/jscalendar/calendar-win2k-cold-1.css" title="win2k-cold-1" />
<script type="text/javascript" src="../js/select_area_<smart> $versionarea </smart>.js"></script>
<script type="text/javascript">
$().ready(function() {
	$('#negative').click(
		function(){
			$('form input[@type=checkbox]').each(function(){
				$(this).attr('checked',!$(this).attr('checked'))
			})
		}
	);
	$('#selectall').click(
		function(){
			$('form input[@type=checkbox]').attr('checked',true)
		}
	)
});
</script>
<style>
#SpaceStatusChart{
	height:10px;
	border:1px solid #AAA;
}
</style>
</head><body>
<div id="container760"> <smart>include file ='../header.html'</smart> <smart>include file ='own_menu.html'</smart>
  <div class="member_right"> <smart>include file ='../InfoSelectorTarget.html'</smart>
    <form action="own_message.php?action=del&genre=<smart> $message_genre </smart>" method="post">
      <!--div class="box_F6F6F6">您现在查看的是：
        <select name="">
          <option value="1">近期的信件</option>
          <option value="2">历史的信件</option>
        </select>
      </div-->
      <a id="add_message" href="own_message.php?action=add" style="float:left"><span><smart> $langShopSendMessage </smart><!--发送短消息--></span></a>
	<div>
		<div title="站内信空间使用情况">
			  <div><smart> if $message_genre eq 'receive' </smart>
					<span style="float:right">收件夹空间使用<smart> $message_num </smart>/200</span>
				  <smart> else if  </smart>
					<span style="float:right">发件夹空间使用<smart> $message_num|default:'0' </smart>/100</span>
				  <smart> /if </smart>
			  </div>
		  <div id="SpaceStatusChart">
			<div style="width:<smart> $message_percent </smart>%;"></div>
		  </div>
		</div>
      <table>
        <tr class="tr_FAFAFA">
          <th><a id="selectall" href="#"><smart> $langCAllSelect </smart><!--全选--></a>/<a id="negative" href="#"><smart> $langCAllNotSelect </smart><!--反选--></a></th>
		  <th><smart> $langShopState </smart><!--状态--></th>
          <th><smart> $langShopTitle </smart><!--标题--></th>
          <th><smart> if $smarty.get.action eq "send" </smart>
			  <smart> $langShopReceiveMan </smart><!--接收人-->
			  <smart> else </smart>
			  <smart> $langShopMessageFrom </smart><!--来自-->
			  <smart> /if </smart>
		  </th>
          <th><smart> $langShopSendTime </smart><!--发送时间--></th>
          <th><smart> $langCOperation </smart><!--操作--></th>
        </tr>
        <smart> section name=i loop=$message_array </smart>
        <tr class="tr_dotted">
          <td style="width:60px"><smart> if $message_array[i].isallowdel eq 1 </smart>
            <input name="messageid[]" type="checkbox" id="messageid" value="<smart> $message_array[i].message_id </smart>" />
            <smart> /if </smart> </td>
		  <td>
		  <smart> if $message_array[i].member_name eq '0' </smart> (系) <smart> /if </smart>
		  <smart> if $message_array[i].isnew eq '0' </smart> (未读) <smart> /if </smart>
		  </td>
          <td><a href="own_message.php?action=show&messageid=<smart> $message_array[i].message_id </smart>&genre=<smart> $message_genre </smart>" class="<smart>if $message_array[i].isnew=='0' </smart>b<smart>/if</smart>"><smart> $message_array[i].title </smart></a></td>
          <td style="text-align:center;">
		  <smart> if $message_array[i].send_name eq '0' </smart>
		  	系统
		  <smart> else </smart>
		  	<smart> $message_array[i].send_name</smart>
		  <smart> /if </smart>
		  </td>
          <td class="font666" style="text-align:center; width:110px"><smart> $message_array[i].send_time|date_format:"%Y-%m-%d %H:%M" </smart></td>
          <td style="text-align:center; width:30px"><smart> if $message_array[i].isallowdel eq 1 </smart><a href="own_message.php?action=del&messageid=<smart> $message_array[i].message_id </smart>&genre=<smart> $message_genre </smart>"><smart> $langCdele </smart><!--删除--></a><smart> /if </smart></td>
        </tr>
        <smart> /section </smart>
      </table>
	  </div>
      <input type="submit" name="Submit" value="<smart> $langCdele </smart>" /><!--删除-->
	  <input type="button" name="Submit" value="<smart> $langShopEmptied </smart>" onclick="location.href='own_message.php?action=clean&genre=<smart> $message_genre </smart>'"/><!--清空-->
	  <input onclick="javascript:location.href='own_message.php?action=derived&genre=<smart> $message_genre </smart>'" type="button" value="<smart> $langShopDerived </smart>" />
    </form>
	
  </div>
  <smart>include file ='../footer.html'</smart> </div>
</body>
</html>
